package com.ck.notify;

public class Producer implements Runnable {

    Person p = null;

    public Producer(Person p){
        this.p = p;
    }

    @Override
    public void run() {
        for (int i = 0; i < 50; i++) {
            if(i%2 == 0){
                p.push("Tom",11);
            }else{
                p.push("Marry",21);
            }
        }
    }
}
